import { Http } from '@angular/http';
import { Injectable } from '@angular/core';
import 'rxjs/ADD/operator/map'
import {BehaviorSubject} from 'rxjs/BehaviorSubject'

/*
  Generated class for the SettingsProvider provider.

  See https://angular.io/guide/dependency-injection for more info on providers
  and Angular DI.
*/
@Injectable()
export class SettingsProvider {

  private theme: BehaviorSubject<string>

  constructor(public http: Http) {
    this.theme = new BehaviorSubject('light-theme');
  }

  setActiveTheme(val){
    this.theme.next(val)
  }

  getActiveTheme(){
    return this.theme.asObservable()
  }

}
